projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5bbacc6
)
Revert "listbox: Activate single-click rows if n_press >= 1"
author
Matthias Clasen
<mclasen@redhat.com>
Fri, 16 Oct 2020 01:45:34 +0000
(21:45 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Fri, 16 Oct 2020 01:46:58 +0000
(21:46 -0400)
This reverts commit
e669433cde60068099c7c03235475673d0ed7db4
.
This broke selection in several listbox examples.
Fixes: #3263
gtk/gtklistbox.c
patch
|
blob
|
history
diff --git
a/gtk/gtklistbox.c
b/gtk/gtklistbox.c
index 189a68ea79994039dae2b05d429a5d71aff0cb22..03334b477bfcb4f131d1ee6e0c686d7f650690fb 100644
(file)
--- a/
gtk/gtklistbox.c
+++ b/
gtk/gtklistbox.c
@@
-1842,9
+1842,9
@@
gtk_list_box_click_gesture_released (GtkGestureClick *gesture,
{
gboolean focus_on_click = gtk_widget_get_focus_on_click (GTK_WIDGET (box->active_row));
- if (box->activate_single_click)
+ if (
n_press == 1 &&
box->activate_single_click)
gtk_list_box_select_and_activate_full (box, box->active_row, focus_on_click);
- else
if (n_press == 2)
+ else
{
GdkEventSequence *sequence;
GdkInputSource source;